<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>HandRecognition: Plik źródłowy handrecognition.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">HandRecognition&#160;<span id="projectnumber">1</span></div>
   <div id="projectbrief">Prostyprogramidentyfikującyosobęnapodstawiedanychbiometrycznychdłoni.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Strona&#160;główna</span></a></li>
      <li><a href="annotated.html"><span>Klasy</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;plików</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">handrecognition.h</div>  </div>
</div>
<div class="contents">
<a href="handrecognition_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef HANDRECOGNITION_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define HANDRECOGNITION_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QDebug&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="handbiometricdata_8h.html">handbiometricdata.h</a>&quot;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 
<a name="l00034"></a><a class="code" href="classHandRecognition.html">00034</a> <span class="keyword">class </span><a class="code" href="classHandRecognition.html">HandRecognition</a>
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="keyword">public</span>:
<a name="l00039"></a><a class="code" href="classHandRecognition.html#aff58993c92a7baf40141ac79ef368bb1">00039</a>     <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="classHandRecognition.html#aff58993c92a7baf40141ac79ef368bb1" title="&lt; Próg akceptacji podobieństwa równy 98,5%">ACCEPTANCE_THRESHOLD</a>;
<a name="l00044"></a>00044     <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classHandRecognition.html#ab41d65ae167f9856dd8fab21fe3d71db">compare</a>(<a class="code" href="classHandBiometricData.html">HandBiometricData</a>&amp;,<a class="code" href="classHandBiometricData.html">HandBiometricData</a>&amp;);
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 };
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="classHandRecognition.html#aff58993c92a7baf40141ac79ef368bb1" title="&lt; Próg akceptacji podobieństwa równy 98,5%">HandRecognition::ACCEPTANCE_THRESHOLD</a>=0.06;
<a name="l00050"></a>00050 
<a name="l00051"></a><a class="code" href="classHandRecognition.html#ab41d65ae167f9856dd8fab21fe3d71db">00051</a> <span class="keywordtype">bool</span> <a class="code" href="classHandRecognition.html#ab41d65ae167f9856dd8fab21fe3d71db">HandRecognition::compare</a>(<a class="code" href="classHandBiometricData.html">HandBiometricData</a>&amp; h1, <a class="code" href="classHandBiometricData.html">HandBiometricData</a> &amp; h2)
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053 
<a name="l00054"></a>00054     <span class="keywordflow">if</span>(fabs(h1.<a class="code" href="classHandBiometricData.html#aae0dea08c92d80c13ea7ed903f39895f" title="długość palca srodkowego">ring_len</a>/h2.<a class="code" href="classHandBiometricData.html#aae0dea08c92d80c13ea7ed903f39895f" title="długość palca srodkowego">ring_len</a> -1)&gt;<a class="code" href="classHandRecognition.html#aff58993c92a7baf40141ac79ef368bb1" title="&lt; Próg akceptacji podobieństwa równy 98,5%">ACCEPTANCE_THRESHOLD</a>)<span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00055"></a>00055     <span class="keywordflow">if</span>(fabs(h1.<a class="code" href="classHandBiometricData.html#a8ce999f5e247feaa48fb25d0eab292ac" title="długość palca wskazującego">middle_len</a>/h2.<a class="code" href="classHandBiometricData.html#a8ce999f5e247feaa48fb25d0eab292ac" title="długość palca wskazującego">middle_len</a> -1)&gt;<a class="code" href="classHandRecognition.html#aff58993c92a7baf40141ac79ef368bb1" title="&lt; Próg akceptacji podobieństwa równy 98,5%">ACCEPTANCE_THRESHOLD</a>)<span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00056"></a>00056     <span class="keywordflow">if</span>(fabs(h1.<a class="code" href="classHandBiometricData.html#a87f9e59e052b345eb94b64dbb1656fc6" title="długość kciuka">index_len</a>/h2.<a class="code" href="classHandBiometricData.html#a87f9e59e052b345eb94b64dbb1656fc6" title="długość kciuka">index_len</a> -1)&gt;<a class="code" href="classHandRecognition.html#aff58993c92a7baf40141ac79ef368bb1" title="&lt; Próg akceptacji podobieństwa równy 98,5%">ACCEPTANCE_THRESHOLD</a>)<span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00057"></a>00057     <span class="keywordflow">if</span>(fabs(h1.thumb_len/h2.thumb_len -1)&gt;<a class="code" href="classHandRecognition.html#aff58993c92a7baf40141ac79ef368bb1" title="&lt; Próg akceptacji podobieństwa równy 98,5%">ACCEPTANCE_THRESHOLD</a>)<span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00058"></a>00058     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00059"></a>00059 }
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="preprocessor">#endif // HANDRECOGNITION_H</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Zmienne</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Wygenerowano Wed Feb 29 2012 13:37:29 dla HandRecognition programem&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
